import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

//vue时间插件
import dayjs from 'dayjs';
Vue.prototype.dayjs = dayjs;


Vue.filter('dateYMDHMSFormat',function(dateStr,pattern='YYYY-MM-DD HH:mm:ss'){
  return dayjs(dateStr).format(pattern);
})


import '@/static/js/bootstrap.min'
import 'jquery/dist/jquery.min'
import 'popper.js'

import '@/static/css/app.css'
import '@/static/css/theme.css'


import '@/permission' // permission control


//md插件
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// use
Vue.use(mavonEditor)


import { Message } from 'element-ui'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n

// set ElementUI lang to EN
Vue.use(ElementUI)
// 如果想要中文版 element-ui，按如下方式声明
// Vue.use(ElementUI)

Vue.config.productionTip = false



import router from './router'


new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
